
{layout name="layout/layout" /}
<div class="king-content-wrap">
	<div class="king-layout1-content" style="margin-top: 0; margin-left: 0px;">
		<ol class="breadcrumb">
			<li><span>修改分期详情</span></li>
			<li><span style="color: red">{$user_name}</span></li>
			<li><span>{$re.loan_type}</span></li>
			<li><span>{$re.loan_pingtai}</span></li>
			<li><span>{$re.repayment_type}</span></li>

		</ol>
		<div class="panel panel-default m20" style="width:30%;">
			<div class="panel-body">
				<form action="{:Url('/admin/repayment/edit')}" method="post">
				<table  style="width: 100%" class="table table-hover">
					<tr style="background-color: #f5f5f5;font-size: 17px">
						<td>期数</td>
						<td>还款金额（元）</td>
						<td>还款状态</td>
					</tr>
					{$re.repayment_type}
					{switch $re.repayment_type}
					{case value='等额本息'}

					<tr>
						<td>共{$re.loan_all}期</td>
						<td>

							<input name="repayment_money" type="text" class="form-control" value="{$money}">
						</td>
						<td>
							默认
						</td>
					</tr>

					{/case}
					{default /}

					{foreach $date as $vo}
					<tr>
						<td>第{$vo.repayment_qishu}期</td>
						<td>
							<input name="repayment_money[]" type="text" value="{$vo.repayment_money}" class="form-control">
						</td>

						<td>
							<select name="repayment_zhuangtai[]">
								<option value="0" {if condition="$vo.repayment_zhuangtai == '0'"} selected = 'selected' {/if}>未还</option>
								<option value="1" {if condition="$vo.repayment_zhuangtai == '1'"} selected = 'selected'{/if}>已还</option>

							</select>
						</td>

					</tr>
					{/foreach}

					{/switch}


				</table>
					<input type="hidden" value="{$re.repayment_type}" name="re_type">
					<input type="hidden" value="{$re.loan_id}" name="loan_id">
					<input class="btn btn-success" type="submit" value="确认">
				</form>



			</div>
		</div>
	</div>
</div>



